﻿using System.Data.Entity;
using Silent.MDB.Common.Data;

namespace Silent.MDB.Server.Model
{
    public interface IDataContext
    {
        IDbSet<RootObject> RootObjects { get; }
        IDbSet<Folder> Folders { get; }
        IDbSet<Person> Persons { get; }
        IDbSet<Teacher> Teachers { get; }
        IDbSet<Student> Students { get; }
        IDbSet<Department> Departments { get; }
        IDbSet<Faculty> Faculties { get; }
        IDbSet<Cathedra> Cathedras { get; } 

        int SaveChanges();
    }
}
